import request from '@/utils/request'

// 获取-部门列表
export const department = () => request.get('/company/department')

// 获取-部门负责人列表
export const simple = () => request.get('/sys/user/simple')

// 新增-部门
export const updataDepartment = (data) => request.post('/company/department', data)

// 删除-部门
export const delDepartment = (id) => request.delete(`/company/department/${id}`)

// 获取-部门详情
export const getDepartment = (id) => request.get(`/company/department/${id}`)

// 修改-部门详情
export const editDepartment = (data) => request.put(`/company/department/${data.id}`, data)
